/**
 * @Author: Gosin
 * @Date: 2020/5/22 1:37
 */
public class DLinkedNode {
    int val;
    //前指针
    DLinkedNode pre;
    //后指针
    DLinkedNode next;
    //添加指针的方法
    public void addNode(DLinkedNode node){
        this.next = node;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public DLinkedNode getPre() {
        return pre;
    }

    public void setPre(DLinkedNode pre) {
        this.pre = pre;
    }

    public DLinkedNode getNext() {
        return next;
    }

    public void setNext(DLinkedNode next) {
        this.next = next;
    }
}
